package ui;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import data.Connect;

public class GlobalLogoutPanel extends JPanel {
	
	JButton buttonLogout;
	/**
	 * Create the panel.
	 */
	
	
	public GlobalLogoutPanel() {
		 
	
		
		
	
		setBackground(Color.decode("#2e2e2e"));
		setLayout(null);
		
		Connect connect = new Connect();
	    
		setPreferredSize(new Dimension(600,40));
	 
	    
		JLabel loginInfo = new JLabel("Logged in as" );
		loginInfo.setForeground(Color.WHITE);
		loginInfo.setBounds(15,5,300,30);
				
		buttonLogout = new JButton("Log Out");
		buttonLogout.setBounds(695, 5, 100, 30);
		buttonLogout.setActionCommand("buttonLogout");
		
		// ADDING ELEMENTS
		add(buttonLogout);
		add(loginInfo);

		
		
	}

	public void addACList(ActionListener ac){
		buttonLogout.addActionListener(ac);
	}
}